All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javax.media.j3d.InputDevice

public interface InputDevice
A InputDevice object encapsulates the InputDevice's basic information.


Variable Index

 o POLLED
Specifies that the associated devices works in polled mode
 o STREAMING
Specifies that the associated devices works in streaming mode

Method Index

 o close()
Code to process the clean up the device and close associated files
 o getProcessingMode()
Retrieve the Device's processing mode
 o getSensor(int)
Get the specified Sensor associated with the Device.
 o getSensorCount()
Get the Device's sensorCount.
 o initialize()
Code to initialize the device
 o pollAndProcessInput()
Code to poll and process the device's input.
 o processStreamInput()
Code to process the device's streaming input.
 o setNominalPositionAndOrientation()
Code to set the device's current position and orientation as the devices nominal position and orientation(establish its reference frame relative to the "Tracker base" reference frame).
 o setProcessingMode(int)
Retrieve the Device's processing mode

Variables

 o POLLED
 public static final int POLLED
Specifies that the associated devices works in polled mode

 o STREAMING
 public static final int STREAMING
Specifies that the associated devices works in streaming mode

Methods

 o initialize
 public abstract boolean initialize()
Code to initialize the device

 o setNominalPositionAndOrientation
 public abstract void setNominalPositionAndOrientation()
Code to set the device's current position and orientation as the devices nominal position and orientation(establish its reference frame relative to the "Tracker base" reference frame).

 o pollAndProcessInput
 public abstract void pollAndProcessInput()
Code to poll and process the device's input.

 o processStreamInput
 public abstract void processStreamInput()
Code to process the device's streaming input.

 o close
 public abstract void close()
Code to process the clean up the device and close associated files

 o getProcessingMode
 public abstract int getProcessingMode()
Retrieve the Device's processing mode

Returns:
Returns the devices processing mode one of POLLED or STREAMING
 o setProcessingMode
 public abstract void setProcessingMode(int mode)
Retrieve the Device's processing mode

Parameters:
mode - One of POLLED or STREAMING
 o getSensorCount
 public abstract int getSensorCount()
Get the Device's sensorCount. Initially set in the Device's constructor.

Returns:
the input device's sensor count.
 o getSensor
 public abstract Sensor getSensor(int sensorIndex)
Get the specified Sensor associated with the Device.

Parameters:
sensorIndex - the sensor to retrieve
Returns:
Returns the specified sensor.

All Packages  Class Hierarchy  This Package  Previous  Next  Index